<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/9/9 0009
 * Time: 下午 5:41
 */

namespace App\Http\Controllers\Index;


use App\Http\Controllers\Controller;
use App\Model\Article;
use App\Model\User;
use App\Model\UserArticle;

class UserController extends Controller
{
    public function index()
    {
        $res = User::where('id',1)->first()->toArray();
        $res['user_article'] = UserArticle::where('uid',$res->id)->count();
        dd($res->toArray());
//        return view('index.',)
    }
}